#include "start.h"
#include "ui_start.h"

start::start(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::start)
{
    QLabel *l1=new QLabel(this);
   l1->setGeometry(0,0,1100,900);
   QPixmap pixmap;
    pixmap.load(":/pics/pic/bg5.jpg");//添加背景图片
    pixmap=pixmap.scaled(1100,900,Qt::IgnoreAspectRatio,Qt::FastTransformation);
    l1->setPixmap(pixmap);
    ui->setupUi(this);
    ui->pushButton->setStyleSheet("color: rgb(255, 255, 255);");
    ui->pushButton->setFont(QFont("Arial", 20));
    ui->pushButton_2->setStyleSheet("color: rgb(255, 255, 255);");
    ui->pushButton_2->setFont(QFont("Arial", 14));
    ui->label->setStyleSheet("color: rgb(255, 255, 255);");
    ui->label->setFont(QFont("Arial", 26));//设置按钮背景颜色，文本的字体、大小和颜色
}
start::~start()
{
    delete ui;
}


void start::on_pushButton_clicked()
{
    this->close();
    b=new setting();
    b->show();//对按钮的点击进行设置
}

void start::on_pushButton_2_clicked()
{
    this->close();
}
